package com.biz.primus.management.order.feign;

import com.biz.primus.model.order.enums.OrderState;
import com.biz.primus.model.order.vo.response.OrderResponseVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zzy
 * @rema 订单控制层调用接口
 * @date 2017/11/9/009
 */
@FeignClient(qualifier = "orderFeignClient", name = "service-order")
public interface OrderFeignClient {

    /**
     * 查询订单数据(根据订单状态与订单编码)
     * @param orderCode     订单编码
     * @param orderState    订单状态
     * @return
     */
    @GetMapping("soa/orderService/queryListByOrderStateAndOrderCode")
    List<OrderResponseVO> queryListByOrderStateAndOrderCode(@RequestParam("orderCode") String orderCode, @RequestParam("orderState") OrderState orderState);

}
